#include <graphics.h>
#include <stdio.h>
#include <math.h>


FILE *inf;

int main()
{
 initwindow(1100,810);
 moveto(50,50);
 float N,f[50],q;
 int i,k,j,l,x,y,u,v,z,s,w;
 inf = fopen("output.txt", "rt");
  for(i=0;i<72;i=i+1)
  {
    fscanf (inf,"%f",&N);    
    f[i]=N;             
  }
  k=1;
  q=14000000;
  for(w=2;w<k+1;w=w+1)
  {
    q=q/2;
  }
  if(k<5)s=5;
  if(k>4)s=k+1;
  v=k;
  if(v<5)k=4-k;
  if(v==5)k=4;
  if(v==6)k=9;
  if(v==7)k=15;
  if(v==8)k=22;
  if(v==9)k=30;
  if(v==10)k=39;
  if(v==11)k=49;
  if(v==12)k=60;
  v=k;
  j=s;
  for(i=0;i<9;i=i+1)
  {
    if(k>71)break; 
    N=f[k];  
    if(v==3)N=N*80000000;else N=N*q;  
    k=k+j+i;
    x=i*100+110;
    if(v!=3)N=90*log(-N+700);
    if(v==3)N=90*log(N);
    y=int(N); 
    if(v==3)y=700-y;else y=600-y;
    fillellipse(x, y, 3, 3);
  }
    moveto(10,100);
  lineto(10,800);
  moveto(10,700);
  lineto(900,700);
  lineto(895,695);
  moveto(900,700);  
  lineto(895,705);
  moveto(10,100);      
  lineto(15,105);
  moveto(10,100);    
  lineto(5,105);  
  getchar();
  closegraph();
  return 0;
}
